package homework2;

import static org.junit.Assert.*;

import java.util.LinkedList;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class Testchar {

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void test() {
		String str="zfw|de|fg";
		LinkedList<String> act=Char.spiltstr(str, '|');
		LinkedList<String> exp=new LinkedList<>();
		exp.add("zfw");
		exp.add("de");
		exp.add("fg");
		assertEquals(exp, act);
	}
	
	@Test
	public void test2() {
		System.out.println("abkfjdkfj");
	}

}
